//
//  EditAddressFooterView.m
//  LuxuryGoods
//
//  Created by DCQ on 2018/5/25.
//  Copyright © 2018年 Future. All rights reserved.
//

#import "EditAddressFooterView.h"
#import "LGImageManagerIO.h"
@interface EditAddressFooterView ()
@property (weak, nonatomic) IBOutlet UIButton *btn;
@end
@implementation EditAddressFooterView
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self setupSubView];
   
}

- (void)setupSubView{
    UIImage * btnImg = [LGImageManagerIO createGradualColorImage:self.btn.size startColor:UIColorFromRGB(0xE1CFA9) endColor:UIColorFromRGB(0xC1B284)];
    [self.btn setBackgroundImage:btnImg forState:UIControlStateNormal];
    [self.btn addTarget:self action:@selector(changeOrNewAction) forControlEvents:UIControlEventTouchUpInside];
}
- (void)changeOrNewAction{
    if (self.saveBlock) {
      self.saveBlock();
    }
 
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
